/*
 * 数据字典样式
 * 因为与后台数据联动，如果需要调整，只能修改内容，而不允许修改名称
 * ----------------------
 */
.dictionary {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 10px;
}

.dic-primary {
  color: #fff;
  background-color: #409EFF;
}

.dic-fatal {
  color: #fff;
  background-color: #777;
}

.dic-success {
  color: #fff;
  background-color: #67C23A;
}

.dic-danger {
  color: #fff;
  background-color: #F56C6C;
}

.dic-warning {
  color: #fff;
  background-color: #ffc107;
}

/*
 * Component: Text Box
 * --------------
 */
.text-box{
  padding: 10px;
  cursor: pointer;
}
.text-box.box-large{
  padding: 14px;
}
.text-box.box-small{
  padding: 6px;
}
.text-box.with-border{
  border-bottom: 1px solid #e4e7ed;
}
.text-box:hover{
  background-color: #f4f4f4;
}

/*
 * Component: Box
 *
 * 色值都是特调的，box-primary、box-danger 等样式的色值与其它组件不同
 * --------------
 */
.box {
  position: relative;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d2d6de;
  transition: 0.3s;
}

.box.with-padding {
  padding: 18px 20px;
}

.hover-shadow:hover {
  border: 1px solid #d2d6de;
  box-shadow:  0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.box-header {
  border-bottom: 1px solid #d2d6de;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}

.box-header.with-padding {
  padding: 16px 20px;
}

.box-body {
}

.box-item {
  padding: 6px;
}

.box-body.with-padding {
  padding: 16px 20px;
}

.box-footer {
  border-radius: 0 0 4px 4px;
  border-top: 1px solid #f4f4f4;
  padding: 6px;
}

.box-footer.with-padding {
  padding: 16px 20px;
}

.box.box-primary {
  border: 1px solid #A0CFFF;
}
.box.box-primary .box-header {
  border-bottom: 1px solid #A0CFFF;
  background-color: #ecf5ff;
}

.box.box-info {
}
.box.box-info .box-header{
}

.box.box-danger {
  /*border: 1px solid #f56c6c;*/
  border: 1px solid #f9a7a7;
}
.box.box-danger .box-header {
  border-bottom: 1px solid #f9a7a7;
  background-color: #fef0f0;
}

.box.box-warning {
  border: 1px solid #f5db57;
}
.box.box-warning .box-header {
  border-bottom: 1px solid #f5db57;
  background-color: #fff1d8;
  /*background-color: #FAECD8;*/
}

.box.box-success {
  border: 1px solid #9fef77;
}
.box.box-success .box-header {
  border-bottom: 1px solid #9fef77;
  background-color: #e7fddb;
}

/*
 * Component: Small Box
 * --------------------
 */
.small-box {
  border-radius: 2px;
  margin: 10px;
  position: relative;
  display: block;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.small-box:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.small-box > .inner {
  padding: 10px;
}

.small-box > .small-box-footer {
  position: relative;
  text-align: center;
  padding: 3px 0;
  color: #fff;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.small-box > .small-box-footer:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}

.small-box h3 {
  font-size: 38px;
  font-weight: bold;
  margin: 0 0 10px 0;
  white-space: nowrap;
  padding: 0;
}

.small-box p {
  font-size: 15px;
}

.small-box p > small {
  display: block;
  color: #f9f9f9;
  font-size: 13px;
  margin-top: 5px;
}

.small-box h3,
.small-box p {
  z-index: 5;
}

.small-box .icon {
  -webkit-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 90px;
  /*color: #fff;*/
  color: rgba(0, 0, 0, 0.15);
}

.small-box:hover {
  text-decoration: none;
  color: #f9f9f9;
}

.small-box:hover .icon {
  font-size: 95px;
}

@media (max-width: 767px) {
  .small-box {
    text-align: center;
  }

  .small-box .icon {
    display: none;
  }

  .small-box p {
    font-size: 12px;
  }
}

/*
 * Component: Info Box
 * -------------------
 */
.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-bottom: 15px;
}

.info-box small {
  font-size: 14px;
}

.info-box .progress {
  background: rgba(0, 0, 0, 0.2);
  margin: 5px -10px 5px -10px;
  height: 2px;
}

.info-box .progress,
.info-box .progress .progress-bar {
  border-radius: 0;
  height: 2px;
}

.info-box .progress .progress-bar {
  background: #fff;
}

.info-box-icon {
  border-radius: 2px 0 0 2px;
  display: block;
  float: left;
  height: 90px;
  width: 90px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2);
}

.info-box-icon > img {
  max-width: 100%;
}

.info-box-content {
  padding: 5px 10px;
  margin-left: 90px;
}

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
}

.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-text {
  text-transform: uppercase;
}

.info-box-more {
  display: block;
}

/*
 * Component: Timeline
 * -------------------
 */
.timeline {
  position: relative;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
  left: 31px;
  margin: 0;
  border-radius: 2px;
}

.timeline > li {
  position: relative;
  margin-right: 10px;
  margin-bottom: 15px;
}

.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}

.timeline > li:after {
  clear: both;
}

.timeline > li > .timeline-item {
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 0;
  background: #fff;
  color: #444;
  margin-left: 60px;
  margin-right: 15px;
  padding: 0;
  position: relative;
}

.timeline > li > .timeline-item > .time {
  color: #999;
  float: right;
  padding: 10px;
  font-size: 12px;
}

.timeline > li > .timeline-item > .timeline-header {
  margin: 0;
  color: #555;
  border-bottom: 1px solid #f4f4f4;
  padding: 10px;
  font-size: 16px;
  line-height: 1.1;
}

.timeline > li > .timeline-item > .timeline-header > a {
  font-weight: 600;
}

.timeline > li > .timeline-item > .timeline-body,
.timeline > li > .timeline-item > .timeline-footer {
  padding: 10px;
}

.timeline > li > .fa,
.timeline > li > .glyphicon,
.timeline > li > .ion {
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  position: absolute;
  color: #666;
  background: #d2d6de;
  border-radius: 50%;
  text-align: center;
  left: 18px;
  top: 0;
}

.timeline > .time-label > span {
  font-weight: 600;
  padding: 5px;
  display: inline-block;
  background-color: #fff;
  border-radius: 4px;
}

.timeline-inverse > li > .timeline-item {
  background: #f0f0f0;
  border: 1px solid #ddd;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.timeline-inverse > li > .timeline-item > .timeline-header {
  border-bottom-color: #ddd;
}

/*
 * Component: Products List
 * ------------------------
 */
.products-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-list > .item {
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  background: #fff;
}

.products-list > .item:before,
.products-list > .item:after {
  content: " ";
  display: table;
}

.products-list > .item:after {
  clear: both;
}

.products-list .product-img {
  float: left;
}

.products-list .product-img img {
  width: 50px;
  height: 50px;
  border: 1px solid lightgray;
}

.products-list .product-info {
  margin-left: 60px;
}

.products-list .product-title {
  font-weight: 600;
}

.products-list .product-description {
  display: block;
  color: #999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-list-in-box > .item {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid #f4f4f4;
}

.product-list-in-box > .item:last-of-type {
  border-bottom-width: 0;
}
/*
 * Component: Direct Chat
 * ----------------------
 */
.direct-chat .box-body {
  overflow-x: hidden;
  height: 250px;
}
.direct-chat.chat-pane-open .direct-chat-contacts {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
}
.direct-chat-messages {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
}
.direct-chat-msg,
.direct-chat-text {
  display: block;
}
.direct-chat-msg {
  margin-bottom: 10px;
}
.direct-chat-msg:before,
.direct-chat-msg:after {
  content: " ";
  display: table;
}
.direct-chat-msg:after {
  clear: both;
}
.direct-chat-messages,
.direct-chat-contacts {
  -webkit-transition: -webkit-transform 0.5s ease-in-out;
  -moz-transition: -moz-transform 0.5s ease-in-out;
  -o-transition: -o-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}
.direct-chat-text {
  border-radius: 5px;
  position: relative;
  padding: 5px 10px;
  background: #d2d6de;
  border: 1px solid #d2d6de;
  margin: 5px 0 0 50px;
  color: #444444;
}
.direct-chat-text:after,
.direct-chat-text:before {
  position: absolute;
  right: 100%;
  top: 15px;
  border: solid transparent;
  border-right-color: #d2d6de;
  content: ' ';
  height: 0;
  width: 0;
  pointer-events: none;
}
.direct-chat-text:after {
  border-width: 5px;
  margin-top: -5px;
}
.direct-chat-text:before {
  border-width: 6px;
  margin-top: -6px;
}
.chart-right .direct-chat-text {
  margin-right: 50px;
  margin-left: 0;
}
.chart-right .direct-chat-text:after,
.chart-right .direct-chat-text:before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: #d2d6de;
}
.direct-chat-img {
  border-radius: 50%;
  float: left;
  width: 40px;
  height: 40px;
}
.chart-right .direct-chat-img {
  float: right;
}
.direct-chat-info {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.direct-chat-info:after{
  content:"";
  display: block;
  clear: both;
}
.direct-chat-name {
  font-weight: 600;
}
.direct-chat-timestamp {
  color: #999;
}
.direct-chat-contacts-open .direct-chat-contacts {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
}
.direct-chat-contacts {
  -webkit-transform: translate(101%, 0);
  -ms-transform: translate(101%, 0);
  -o-transform: translate(101%, 0);
  transform: translate(101%, 0);
  position: absolute;
  top: 0;
  bottom: 0;
  height: 250px;
  width: 100%;
  background: #222d32;
  color: #fff;
  overflow: auto;
}
.direct-chat-danger .chart-right > .direct-chat-text {
  background: #dd4b39;
  border-color: #dd4b39;
  color: #ffffff;
}
.direct-chat-danger .chart-right > .direct-chat-text:after,
.direct-chat-danger .chart-right > .direct-chat-text:before {
  border-left-color: #dd4b39;
}
.direct-chat-primary .chart-right > .direct-chat-text {
  background: #3c8dbc;
  border-color: #3c8dbc;
  color: #ffffff;
}
.direct-chat-primary .chart-right > .direct-chat-text:after,
.direct-chat-primary .chart-right > .direct-chat-text:before {
  border-left-color: #3c8dbc;
}
.direct-chat-warning .chart-right > .direct-chat-text {
  background: #f39c12;
  border-color: #f39c12;
  color: #ffffff;
}
.direct-chat-warning .chart-right > .direct-chat-text:after,
.direct-chat-warning .chart-right > .direct-chat-text:before {
  border-left-color: #f39c12;
}
.direct-chat-info .chart-right > .direct-chat-text {
  background: #00c0ef;
  border-color: #00c0ef;
  color: #ffffff;
}
.direct-chat-info .chart-right > .direct-chat-text:after,
.direct-chat-info .chart-right > .direct-chat-text:before {
  border-left-color: #00c0ef;
}
.direct-chat-success .chart-right > .direct-chat-text {
  background: #00a65a;
  border-color: #00a65a;
  color: #ffffff;
}
.direct-chat-success .chart-right > .direct-chat-text:after,
.direct-chat-success .chart-right > .direct-chat-text:before {
  border-left-color: #00a65a;
}
/*
 * Page: 400 and 500 error pages
 * ----------------------
 */
.error-page {
  width: 600px;
  margin: 20px auto 0 auto;
}
@media (max-width: 991px) {
  .error-page {
    width: 100%;
  }
}
.error-page > .headline {
  float: left;
  font-size: 100px;
  font-weight: 300;
}
@media (max-width: 991px) {
  .error-page > .headline {
    float: none;
    text-align: center;
  }
}
.error-page > .error-content {
  margin-left: 190px;
  display: block;
}
@media (max-width: 991px) {
  .error-page > .error-content {
    margin-left: 0;
  }
}
.error-page > .error-content > h3 {
  font-weight: 300;
  font-size: 25px;
}
@media (max-width: 991px) {
  .error-page > .error-content > h3 {
    text-align: center;
  }
}
/**
 * 加载遮罩层
 * ----------------------
 */
.sea-loading {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: lightgrey lightgrey transparent transparent;
  -webkit-animation: sea-rotation 1s linear infinite;
  animation: sea-rotation 1s linear infinite;
}

.sea-loading:before {
  width: 32px;
  height: 32px;
  border-color: lightgrey lightgrey transparent transparent;
  -webkit-animation: sea-rotation 1.5s linear infinite;
  animation: sea-rotation 1.5s linear infinite;
}

.sea-loading:after, .sea-loading:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #FF3D00 #FF3D00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -webkit-animation: sea-rotation-back 0.5s linear infinite;
  animation: sea-rotation-back 0.5s linear infinite;
  transform-origin: center center;
}
@keyframes sea-rotation-back {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
@-webkit-keyframes sea-rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}